package com.lb.design.builder;

/**
 * @ClassName： HouseDirector
 * @Description：
 * @Author: 蓝莲花
 * @Date： 2024/1/16 15:21
 * @Version： V1.0
 */
public class HouseDirector {
    HouseBuilder houseBuilder = null;

    public HouseDirector(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }

    public void setHouseBuilder(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }

    public House constructHouse() {
        houseBuilder.builderBasic();
        houseBuilder.builderWalls();
        houseBuilder.woofed();

        return houseBuilder.builderHouse();
    }
}
